package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {

    /**
     * 暴露方法 申请密匙
     * @param clientId  微服务id
     * @param secret  微服务密匙
     * @return String
     */
    @GetMapping("/client/key")
    String getSecretKey(@RequestParam("clientId") String clientId,@RequestParam("secret") String secret);

}
